import Vue from 'vue'

import App from './App.vue'
import router from './router'
//导入字体图标
import './assets/iconfont/iconfont.css'
import './assets/main.css'
import './assets/base.css'
import './assets/typo.css'
// 导入Element Ui 样式文件
import 'element-ui/lib/theme-chalk/index.css';
import 'element-ui/lib/theme-chalk/display.css';
// 引入axios
import axios from 'axios'
import 'animate.css';
import ElementUI from 'element-ui';
// console.log(import.meta.env);
import './assets/css/comment.min.css'
import socket from './plugins/socket'
import { store } from "@/store";
import { TimeFormat } from "@/utils/time";
axios.defaults.baseURL= '/basice'+'/api'

Vue.prototype.axios=axios;
Vue.prototype.TimeFormat = TimeFormat
Vue.prototype.$Websocket = null;
Vue.use(ElementUI)
Vue.use(socket)
new Vue({
  router,
  store,
  render: (h) => h(App),
  beforeCreate(){
    Vue.prototype.$bus=this
  }
}).$mount('#app')
